﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class ShopBrandsInfoConfig : EntityTypeConfiguration<ShopBrandsInfo>
    {
        public ShopBrandsInfoConfig()
        {
            ToTable("Himall_ShopBrands");
            HasRequired(x => x.Himall_Shops).WithMany(x => x.Himall_ShopBrands).HasForeignKey(x => x.ShopId);
            HasRequired(x => x.Himall_Brands).WithMany(x => x.Himall_ShopBrands).HasForeignKey(x => x.BrandId);
        }
    }
}
